/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package newpackage;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
 *
 * @author Home
 */
class ClassB extends JFrame {
    JTextField text;

    public ClassB() {
        JLabel l = new JLabel("Name: ");
        text = new JTextField(20);

        setLayout(null);
        l.setBounds(10, 10, 100, 20);
        text.setBounds(120, 10, 150, 20);

        add(l);
        add(text);

        setVisible(true);
        setSize(300, 100);

    }
}
